<div>
    <input id="rule{{$index}}" type="{{rule.type}}" ng-disabled="!playWithCustomRules" ng-model="rule.value">
    <label for="rule{{$index}}">{{rule.name}}</label>
</div>